export const rgb = (color: u32): Uint16Array => {
    const arr = new Uint16Array(3);
    arr[0] = color >> 16;
    arr[1] = (color >> 8) & 0xff;
    arr[2] = color & 0xff;
    return arr;
};
export const toRGBString = (r: u32, g: u32, b: u32): u32 => {
    return (r << 16) + (g << 8) + b;
};
